package org.anti996.lms.model;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 货单
 * </p>
 *
 * @author The Anti996 Authors
 * @since 2022-07-15
 */
@Getter
@Setter
@ApiModel(value = "Booking对象", description = "货单")
public class Booking implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("货单号")
      @TableId(value = "b_num", type = IdType.AUTO)
      private Integer bNum;

      @ApiModelProperty("发货客户编号")
      private Integer cIdFrom;

      @ApiModelProperty("收货客户编号")
      private Integer cIdTo;

      @ApiModelProperty("发货时付款")
      private Boolean payBefore;

      @ApiModelProperty("登记时间")
      private LocalDateTime checkIn;

      @ApiModelProperty("到达时间")
      private LocalDateTime arrive;

      @ApiModelProperty("签收时间")
      private LocalDateTime checkOut;

      @ApiModelProperty("货物重量")
      private Object weight;

      @ApiModelProperty("运费")
      private int money;

      @ApiModelProperty("货物价值")
      private Object value;

      @ApiModelProperty("发货仓库")
      private Integer wIdFrom;

      @ApiModelProperty("收货仓库")
      private Integer wIdTo;

      @ApiModelProperty("所属运单号")
      private Integer tNum;

      @ApiModelProperty("验货结果")
      private String checkResult;

      @ApiModelProperty("逻辑删除")
      @TableLogic
      private Boolean deleted;

      @ApiModelProperty("发货操作员")
      private Integer oIdFrom;

      @ApiModelProperty("送货操作员")
      private Integer oIdTo;

      @ApiModelProperty("签收结果描述")
      private String checkDesc;

}
